#ifndef __ADDON_H__
#define __ADDON_H__

#include<stdio.h>


char * trim(char *str) {
	char * pstart = str, * pcur;

	if(*pstart != '\0') {
		for( pcur = str; *pcur == '\t' || * pcur == ' ' || *pcur == '\n' || *pcur == '\r'; pcur++);
		do {
			* pstart ++ = *pcur++;
		} while(*pcur!='\0');
		pcur = pstart;

		for( pcur-- ;  *pcur == '\t' || * pcur == ' ' || *pcur == '\n' || *pcur == '\r' ; pcur--);
		* ++pcur = '\0';
	}
	return str;
}




#endif
